package com.ly.mapper;

import com.ly.pojo.Cultivate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CultivateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Cultivate record);

    int insertSelective(Cultivate record);

    Cultivate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cultivate record);

    int updateByPrimaryKey(Cultivate record);

    List<String> selectCourseCodeListByClassCode(String classCode);

    void deleteByClassAndCourseCodeAndSemester(String classCode, String courseCode, String semester);

    void updateGradeStatusByCourseCode(String courseCode);
}